package com.example.service.impl;

import com.example.dao.LogMapper;
import com.example.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogMapper logMapper;

    public void insertLog(String im,String out, Double yh){
        String info=out+"向"+im+"转入"+yh;
        logMapper.insertLog(info,new Date());
    }
}
